home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3904 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: ns.ftns.no!news
  2. From: kenneth@norconnect.no (Kenneth C. Nilsen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Q:ANSI attributes - 16 colors & blinking?
  5. Date: 16 Feb 1996 13:06:29 GMT
  6. Organization: A poorly-installed InterNetNews site
  7. Message-ID: <1353.6620T780T2332@norconnect.no>
  8. References: <4fqpk3$6tf@tron.sci.fi>
  9. NNTP-Posting-Host: norconnect.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. The 13-Feb-96 20:40:54, Tuomas Salo wrote in msg n/a : 
  13.  
  14. >Can I use 16 colors with ANSI? The first 8 ones are easy, but is the
  15. >Graphics Rendition attribute 2 (secondary color/dim/faint/etc) usable?
  16.  
  17. 16 bit ansi is not supported on the Amiga with the normal console.device. You
  18. need to use emulated console if that can be a good word for it.
  19.  
  20. To use the upper 8 colors you need to set the bold attribute. That is also
  21. why 16 colors ansi is slow on the Amiga. 0-7 are halfbrites which you set
  22. with normal Amiga ansi codes.
  23.  
  24. Colors are set as bits:
  25.  
  26. Halfbrites:    R    G    B
  27. Bit:           0    1    2
  28. Value:         1    2    4
  29. --------------------------
  30. 0  - Black     0,   0,   0  (value: 1)
  31. 1  - Red     127,   0,   0  (value: 2)
  32. 2  - Green     0, 127,   0  (etc.)
  33. 3  - Yellow  127, 127,   0
  34. 4  - Blue      0,   0, 127
  35. 5  - Purple  127,   0, 127
  36. 6  - Cyan      0, 127, 127
  37. 7  - White   127, 127, 127
  38.  
  39. Hicolors:      R    G    B   (w/ bold)
  40.  
  41. 8  - Black     0,   0,   0
  42. 9  - Red     255,   0,   0
  43. 10 - Green     0, 255,   0
  44. 11 - Yellow  255, 255,   0
  45. 12 - Blue      0,   0, 255
  46. 13 - Purple  255,   0, 255
  47. 14 - Cyan      0, 255, 255
  48. 15 - White   255, 255, 255
  49.  
  50.  
  51.  
  52. ---
  53. Worldwide Solutions AS  \        Kenneth C. Nilsen (kenneth@norconnect.no)
  54.     Advisor, developer   \/\/\/\        http://www.norconnect.no/~kenneth/
  55.            coordinator          \
  56.  
  57.  
  58.